import request from '@/utils/request'

export function QuePageList(query) {
  return request({
    url: '/api/admin/question/page',
    method: 'post',
    params: query
  })
}

export function QueEdit(query) {
  return request({
    url: '/api/admin/question/edit',
    method: 'post',
    data: query
  })
}

export function QueSelect(id) {
  return request({
    url: '/api/admin/question/select/' + id,
    method: 'post',
  })
}
export function QueDeleteQuestion(id) {
  return request({
    url: '/api/admin/question/delete/' + id,
    method: 'post',
  })
}

export function QueTotalQuestion(query) {
  return request({
    url: '/api/admin/question/selectTotalQuestion',
    method: 'post',
    params: query
  })
}
